import * as dayjs from 'dayjs';

export const formatDayTime = (time: string | number) => {
  if (!time) return '-';
  return dayjs.unix(Number(time)).format('YYYY-MM-DD') || '-';
};

export const formatMinutesTime = (time: string | number) => {
  if (!time) return '-';
  return dayjs.unix(Number(time)).format('YYYY-MM-DD HH:mm') || '-';
};
